package itbour.onetouchshow.constants;

import com.itbour.callback.DataBeanCallBack;

import io.reactivex.Observable;
import itbour.onetouchshow.bean.MapData;
import itbour.onetouchshow.bean.MyCollectBean;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by guoh on 2018/7/25.
 * 功能描述：
 * 需要的参数：
 */
public interface ModuleApi {

    @GET(AppConfig.GETTMPLSETCONTENT_V1_0)
    Observable<DataBeanCallBack<MapData<MyCollectBean>>> getModuleList(@Query("setIds") String setIds,
                                                                       @Query("durations") String durations,
                                                                       @Query("industrySetIds") String industrySetIds,
                                                                       @Query("pageNum") int pageNum, @Query("pageSize") int pageSize,
                                                                       @Query("withTotalPage") int withTotalPage);

    @GET(AppConfig.GET_APPBASE_INFO_V10)
    Observable<DataBeanCallBack> getAppBasicInfo(@Query("device") String device, @Query("appVer") String appVer);


    @GET(AppConfig.GETUSERWORKLIST_V1_0)
    Observable<DataBeanCallBack> getUserWorkList(@Query("device") String device, @Query("userId") String userId,
                                                 @Query("opTypes") String opTypes, @Query("pageNum") int pageNum,
                                                 @Query("pageSize") int pageSize);

}
